package com.diandian.backend.product.param;

import java.io.Serializable;

public class ProductStockSummaryGetAllParam implements Serializable {

	private String belong;
	private String offlineStoreCode;
	private String productCode;
	private String skuCode;

	public void check(){
		if(this.belong == null || "".equals(this.belong)){
			throw new RuntimeException("归属标识不能为空");
		}
		if(this.offlineStoreCode == null || "".equals(this.offlineStoreCode)){
			throw new RuntimeException("线下门店编码不能为空");
		}
		if(this.productCode == null || "".equals(this.productCode)){
			throw new RuntimeException("商品编码不能为空");
		}
		if(this.skuCode == null || "".equals(this.skuCode)){
			throw new RuntimeException("SKU编码不能为空");
		}
	}

	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}

	public String getOfflineStoreCode() {
		return offlineStoreCode;
	}

	public void setOfflineStoreCode(String offlineStoreCode) {
		this.offlineStoreCode = offlineStoreCode;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}
}
